package com.nodecollege.cloud.service;

import com.nodecollege.cloud.common.model.NCResult;
import com.nodecollege.cloud.common.model.po.UpmsApiVisit;
import com.nodecollege.cloud.common.model.vo.ApiVisitQuery;
import com.nodecollege.cloud.common.model.vo.ApiVisitVO;

import java.util.List;

/**
 * 接口访问处理
 *
 * @author LC
 * @date 2019/12/23 15:26
 */
public interface ApiVisitService {

    /**
     * 获取接口访问list
     *
     * @param apiVisitQuery
     * @return
     */
    NCResult<ApiVisitVO> getApiVisitList(ApiVisitQuery apiVisitQuery);

    /**
     * 添加接口访问记录到redis中
     */
    void addApiVisitCache(UpmsApiVisit upmsApiVisit);

    /**
     * 添加接口访问记录
     * @param apiVisitList
     */
    void addApiVisitList(List<UpmsApiVisit> apiVisitList);
}
